x86: fix cpu_sibling_map initialization when topology CPUID leaf is present
authorJan Beulich <jbeulich@novell.com>
Mon, 14 Mar 2011 17:05:21 +0000 (17:05 +0000)
committerJan Beulich <jbeulich@novell.com>
Mon, 14 Mar 2011 17:05:21 +0000 (17:05 +0000)
commit37916ccd3a54b9e2899e4c0ea941e1d8b1ccd5c2
treecbb6ca0f3d609abf5098841f02849204b41f643b
parent1a048a1d9e37576f4c0e867ba362afbd456555aa
x86: fix cpu_sibling_map initialization when topology CPUID leaf is present

c/s 21811:12f0618400de broke this by not properly initializing struct
cpuinfo_x86's x86_num_siblings member (other than Linux, where this is
a global variable, it is being maintained per CPU by Xen).

Hyper-threaded CPUs with CPUID leaf 0xb present had therefore all
cpu_sibling_map-s with just a single bit set, thus improperly feeding
the scheduler.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/cpu/common.c